import { ref} from "vue"
// 跳转页面
export const outerHref = (url,type=1,state=false) => {
		//type 类型  1:uni.navigateTo  2uni.redirectTo 3uni.switchTab 4uni.navigateBack
    //未登录
    if(!state){
			if(type==1){
				uni.navigateTo({
					url:url
				});
			}else if(type==2){
				uni.redirectTo({
					url:url
				});

			}else if(type==3){
				uni.switchTab({
					url:url
				});

			}else if(type==4){
				uni.navigateBack({
					delta: 1
				});
			}
		}  
}